//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package objects;

import java.util.LinkedHashMap;

public class Tutorials {
    private static LinkedHashMap<Integer, TutorialsEntry> tutorialIdsList = new LinkedHashMap();
    private static LinkedHashMap<String, TutorialsEntry> tutorialNamesList = new LinkedHashMap();

    public Tutorials() {
    }

    public static void add(TutorialsEntry e) {
        tutorialIdsList.put(e.getGlobalID(), e);
        tutorialNamesList.put(e.getName(), e);
    }

    public static TutorialsEntry getById(Integer id) {
        return (TutorialsEntry)tutorialIdsList.get(id);
    }

    public static TutorialsEntry getByName(String name) {
        return (TutorialsEntry)tutorialNamesList.get(name);
    }

    public static void clear() {
        tutorialIdsList.clear();
        tutorialNamesList.clear();
    }

    public static void createEntry(String name, Integer max, Integer min) {
        TutorialsEntry e = new TutorialsEntry(name, min, max, Integer.valueOf(tutorialIdsList.size()));
        add(e);
    }
}
